
// 异步存储token
export function setToken(data) {
  wx.setStorageSync('token', data)
}

// 同步获取token
export function getToken() {
  try {
    var value = wx.getStorageSync('token')
    if (value) {
      // Do something with return value
      return value
    }
  } catch (e) {
    // Do something when catch error
    console.log(e)
  } 
}
